package com.petrochina.cloudconfig.mapper;

import com.petrochina.cloudconfig.domain.Env;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * env mapper
 */
public interface EnvMapper {

    public List<Env> list(String keyWord);

    public boolean delEnvByFullName(String envFullName);

    public Env getDev(String envFullName);

    public boolean addEnv(Env env);

    public List<Env> listByPkgId(int pkgId);

    public boolean delEnv(@Param("pkgFullName") String pkgFullName, @Param("envName")String envName);
}

